﻿using Kimd.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Communication
{
    public class TCPClientConfig
    {
        [DisplayName("IP"), Category("TCP客户端属性")]
        public string IP { get; set; } = "127.0.0.1";
        [DisplayName("端口"), Category("TCP客户端属性")]
        public int Port { get; set; } = 9600;
        [Browsable(false)]
        public SerializableDictionary<string, string> SendCmd { get; set; } = new SerializableDictionary<string, string>();
        [DisplayName("接收编码规则"), Category("字符串")]
        public EncodingEnumStr ReceiveEncoding { get; set; } = EncodingEnumStr.Default;
        [DisplayName("发送编码规则"), Category("字符串")]
        public EncodingEnumStr SendEncoding { get; set; } = EncodingEnumStr.Default;
    }
}
